package com.lagou.provider8802.service.impl;

import com.lagou.api.UserService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public String sayHello(String name) {
        System.out.println(RpcContext.getContext().getAttachment("visit_ip"));
        return "provider-8802: " + name;
    }
}
